<%--
  Created by IntelliJ IDEA.
  User: 25608
  Date: 2022年11月26日
  Time: 21:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Title</title>
</head>
<body>
    <%
        out.println("hiiiiiii");
    %>

<script type="text/javascript" language="JavaScript">
    window.onload = function () {
        alert("有东西啦");
        /*<![CDATA[*/

        //定义路径
        var loginhref= /*[[@{/login}]]*/"/upload";
        /*]]>*/
        //执行方法
        location.href=loginhref;
    }

</script>
</body>
</html>
